// 浮点类型 建议用 float64

package main
import (
	"fmt"
)

func main(){
	var price = 55666666.55 //浮点数都有符号 显示的时候用科学计数法 默认 float64
	fmt.Println("price is",price)
	fmt.Printf("type of price is %T\n",price)
	var num1 float32 = -123.0000901
	var num2 float64 = -123.0000901
	fmt.Println("num1 =",num1," num2=",num2) //float64 保存精度更高
	var num3 = .123
	fmt.Println("num3 =",num3)
	num4 := 4.1234111E-3 // 科学计数法 
	fmt.Println("num4 =",num4)
}